package cn.jiyun.user.mapper;

import cn.jiyun.user.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper extends BaseMapper<User> {
    @Select("select age,count(*) as total from tb_user group by age")
    List<Map> findCountByAge();
}
